projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3111f
)
css: border-style: hidden computes a 0 border
author
Benjamin Otte
<otte@redhat.com>
Sat, 7 Jan 2012 16:45:15 +0000
(17:45 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 9 Jan 2012 17:37:59 +0000
(18:37 +0100)
gtk/gtkcssstylepropertyimpl.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssstylepropertyimpl.c
b/gtk/gtkcssstylepropertyimpl.c
index 4ec3c8e35cd11d4d7d71f15678832cb6c20f4fda..7638f942cd64d719ebf0b312f52916435640f170 100644
(file)
--- a/
gtk/gtkcssstylepropertyimpl.c
+++ b/
gtk/gtkcssstylepropertyimpl.c
@@
-448,7
+448,8
@@
compute_border_width (GtkCssStyleProperty *property,
border_style = g_value_get_enum (_gtk_style_context_peek_property (context, _gtk_style_property_get_name (GTK_STYLE_PROPERTY (style))));
g_value_init (computed, G_TYPE_INT);
- if (border_style == GTK_BORDER_STYLE_NONE)
+ if (border_style == GTK_BORDER_STYLE_NONE ||
+ border_style == GTK_BORDER_STYLE_HIDDEN)
g_value_set_int (computed, 0);
else
g_value_copy (specified, computed);